
<template>
  <div>
    <w-charts 
      :id="chartData.htmlId"
      :itemData="JSON.parse(chartData.data)"
      :width="JSON.parse(chartData.data).width"
      :height="JSON.parse(chartData.data).height"
    >
    <!-- <w-charts 
      :id="chartData.htmlId"
      :itemData="chartData.data"
      :width="chartData.data.width"
      :height="chartData.data.height"
    > -->

    </w-charts>

  </div>
</template>

<script>
import wCharts from "@/components/echarts";
export default {
  components: {
    wCharts
  },
  data() {
    return {
      chartData: {
        "id": "15",
        // "data": "{\"chartType\":4,\"color\":[\"#00B050\",\"#ED7D31\"],\"height\":320,\"name\":\"运营商间用户占比竞对分析\",\"series\":[{\"data\":[31.34,53.87,14.78],\"name\":\"本月\"},{\"data\":[32.19,53.62,14.18],\"name\":\"上月\"}],\"unit\":\"%\",\"width\":480,\"xAxis\":[[\"本月\",\"上月\",\"本月\",\"上月\",\"本月\",\"上月\"],[\"电信\",\"移动\",\"联通\"]]}",
        // "data": {
        //   "chartType": 8,
        //   "color": [ "#5b9bd5" ],
        //   "height": 320,
        //   "name": "全市用户份额趋势(归属)分析",
        //   "series": [
        //     {
        //       // "data": [ 91.3, 94.3, 81.3, 91.3, 94.3, 81.3, 91.3, 94.3, 81.3, 91.3, 94.3, 81.3, 91.3, 94.3, 81.3, 91.3, 94.3, 81.3, 91.3, 94.3, 81.3 ],
        //       // "icon": [ "up", "up", "down", "up", "up", "down", "up", "down", "down", "up", "down", "down","up", "up", "down", "up", "up", "down", "up", "down", "down" ],
        //       "data": [ 90 ],
        //       "icon": [ 'down' ],
              
        //     },
        //   ],
        //   "unit": "%",
        //   "width": 480,
        //   "xAxis": [
        //     // [ "南京市", "无锡市", "徐州市", "常州市", "苏州市", "南通市", "连云港市", "淮安市", "扬州市", "镇江市", "泰州市", "宿迁市", "南京", "无锡", "徐州", "常州", "苏州", "南通", "连云港", "淮安", "扬州" ],
        //     [ '南京市' ] 
        //   ]
        // },
        // "data": {
        //   "chartType": 7,
        //   "color": [ "#92D050","#FF0000","#2E75B6" ],
        //   "height": 500,
        //   "name": "全市用户份额趋势(归属)分析",
        //   "series": [
        //     {
        //       "data": [ 91.3, 94.3, 81.3, 91.3, 94.3, 81.3, 91.3, 94.3, 81.3, 91.3, 94.3, 81.3 ],
        //       // "data": [null, null, null, null, null, null, null, null, null, null, null, 81.3  ],
        //       "name": "移动"
        //     },
        //     {
        //       "data": [ 82.3, 93.3, 93.3, 82.3, 93.3, 93.3, 82.3, 93.3, 93.3, 82.3, 93.3, 93.3,  ],
        //       // "data": [null, null, null, null, null, null, null, null, null, null, null, 93.3  ],
        //       "name": "联通"
        //     },
        //     {
        //       "data": [ 96.3, 82.3, 75.3, 96.3, 82.3, 75.3, 96.3, 82.3, 75.3, 96.3, 82.3, 75.3,  ],
        //       // "data": [null, null, null, null, null, null, null, null, null, null, null, 75.3  ],

        //       "name": "电信"
        //     }
        //   ],
        //   "unit": "%",
        //   "width": 570,
        //   "xAxis": [
        //     [ "2020.04", "2020.05", "2020.06", "2020.07", "2020.08", "2020.09", "2020.10", "2020.11", "2020.12", "2021.01", "2021.02", "2021.03" ],
        //     [ "电信", "移动", "联通" ]
        //   ]
        // },
        // "data": "{\"chartType\":5,\"color\":[\"#2E75B6\",\"#92D050\",\"#FF0000\"],\"height\":320,\"name\":\"全市用户构成（归属）分析\",\"series\":[{\"data\":[0.48,8.87,8.10,0,0,0],\"name\":\"2、3g\"},{\"data\":[96.98,81.25,91.69,0,0,0],\"name\":\"4g\"},{\"data\":[2.54,9.88,0.21,0,0,0],\"name\":\"5g\"}],\"unit\":\"%\",\"width\":480,\"xAxis\":[[\"电信\",\"移动\",\"联通\",\"电信\",\"移动\",\"联通\"],[\"本月\",\"上月\"]]}",
        "data": "{\"chartType\":9,\"color\":[\"#5B9BD5\"],\"height\":320,\"name\":\"对标地市用户份额分析(归属)\",\"series\":[{\"data\":[46.56,61.91,63.78,55.80,52.29,52.88,55.26,61.79,42.19,58.79],\"name\":\"用户份额\"}],\"unit\":\"%\",\"width\":640,\"xAxis\":[[\"马鞍山市\",\"深圳市\",\"漳州市\",\"苏州市\",\"烟台市\",\"济南市\",\"南京市\",\"福州市\",\"天津市\",\"北京市\"]]}",
        "detailType": "10",
        "htmlId": "15"
      }
    }
  }
}
</script>


